/**
 * Created by user on 2/13/19.
 */

const PREFIX = 'do_like_'
const DoLikeActionType = {
  toggle_animate: PREFIX + 'toggle_animate',
  set_last_like_time: PREFIX + 'set_last_like_time',
  toggle_toast_text: PREFIX + 'toggle_toast_text'
}

const toggleAnimate = (animate) => {
  return {
    type: DoLikeActionType.toggle_animate,
    payload: { animate }
  }
}

const setLastLikeTime = (time) => {
  return {
    type: DoLikeActionType.set_last_like_time,
    payload: { time }
  }
}

const toggleToastText = (text) => {
  return {
    type: DoLikeActionType.toggle_toast_text,
    payload: { text }
  }
}
module.exports = {
  DoLikeActionType,
  setLastLikeTime,
  toggleAnimate,
  toggleToastText
}
